package org.iabako.client.config.menu;

import org.iabako.client.config.page.PageEnum;
import org.iabako.client.tools.Messages;

/**
 * Date: 18/09/13
 * Time: 22:58
 */
public enum MenuItemEnum {

    Clients("clients", "menuclient", PageEnum.ClientSearch),
    Products("products", "menuproduct", PageEnum.ProductSearch),
    Services("services", "menuservice", PageEnum.ServicesSearch),
    Sales("sales", "menusale", PageEnum.SaleSearch),
    Expenses("expenses", "menuexpense", PageEnum.ExpenseSearch),
    Reports("reports", "menureport", PageEnum.ReportCreate);
    String labelKey;
    String style;
    PageEnum pageEnum;

    private MenuItemEnum(String labelKey, String style, PageEnum pageEnum) {
        this.labelKey = labelKey;
        this.style = style;
        this.pageEnum = pageEnum;
    }

    public String getLabel() {
        return Messages.getLabel(labelKey);
    }

    public String getStyle() {
        return style;
    }

    public PageEnum getPage() {
        return pageEnum;
    }
}
